var router = require('koa-router')();
var Data = require('../app/control/data.js')
router.get('/', async function (ctx, next) {
  ctx.state = {
    title: 'koa2 title'
  };
  await ctx.render('index', {
  });
})
router.post('/',Data.api.get_data)
module.exports = router;
